package com.ruoyi.common.constant;

public class ConstantDouYinBase {
    public enum App {
        BASE("应用基本信息", "aw50xk3v85km3m1v", "a120358b86479d8f620c8056e5906d6a");
        private String message;
        private String clientKey;
        private String clientSecret;

        App(String message, String clientKey, String clientSecret) {
            this.message = message;
            this.clientKey = clientKey;
            this.clientSecret = clientSecret;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getClientKey() {
            return clientKey;
        }

        public void setClientKey(String clientKey) {
            this.clientKey = clientKey;
        }

        public String getClientSecret() {
            return clientSecret;
        }

        public void setClientSecret(String clientSecret) {
            this.clientSecret = clientSecret;
        }
    }

    public enum Url {
        BASE_URL("抖音基本的RUL", "https://open.douyin.com"),
        AUTH_URL_CODE("用户授权获取Code", "/platform/oauth/connect/"),
        AUTH_URL_ACCESS_TOKEN("用户授权获取AccessToken", "/oauth/access_token/"),
        AUTH_URL_REFRESH_TOKEN("用户授权刷新AccessToken通过RefreshToken", "/oauth/refresh_token/"),
        USER_VIDEO_LIST("查询授权账号视频数据", "/video/list/"),
        USER_VIDEO_DETAIL("查询指定视频数据", "/video/data/"),
        USER_FANS_LIST("粉丝列表", "/fans/list/"),
        USER_INFO("授权用户信息", "/oauth/userinfo/"),
        // 数据开放中心->用户数据
        DATA_OPEN_USER_VIDEO_STATUE("数据开放服务->获取用户视频情况", "/data/external/user/item/"),
        DATA_OPEN_USER_FANS_STATUE("数据开放服务->获取用户粉丝数", "/data/external/user/fans/"),
        DATA_OPEN_USER_LIKE_STATUE("数据开放服务->获取用户点赞数", "/data/external/user/like/"),
        DATA_OPEN_USER_COMMENT_STATUE("数据开放服务->获取用户评论数", "/data/external/user/comment/"),
        DATA_OPEN_USER_SHARE_STATUE("数据开放服务->获取用户分享数", "/data/external/user/share/"),
        DATA_OPEN_USER_MINE_INDEX_STATUE("数据开放服务->获取用户主页访问数", "/data/external/user/profile/"),
        // 数据开放中心->视频数据
        DATA_OPEN_VIDEO_BASE_DATA("数据开放服务->获取视频基础数据", "/data/external/item/base/"),
        DATA_OPEN_VIDEO_LIKE_DATA("数据开放服务->获取视频点赞数据", "/data/external/item/like/"),
        DATA_OPEN_VIDEO_COMMENT_DATA("数据开放服务->获取视频评论数据", "/data/external/item/comment/"),
        DATA_OPEN_VIDEO_PLAYER_DATA("数据开放服务->获取视频播放数据", "/data/external/item/play/"),
        DATA_OPEN_VIDEO_SHARE_DATA("数据开放服务->获取视频分享数据", "/data/external/item/share/"),
        // 数据开放中心->热点视频数据
        DATA_OPEN_HOT_VIDEO_NOW_WORD("数据开放服务->获取实时热点词", "/hotsearch/sentences/"),
        DATA_OPEN_HOT_VIDEO_UP_WORD("数据开放服务->获取上升词", "/hotsearch/trending/sentences/"),
        DATA_OPEN_HOT_VIDEO_COLLECT_WORD("数据开放服务->获取热点词聚合的视频", "/hotsearch/videos/"),
        // 数据开放中心->星图数据
        DATA_OPEN_START_LIST_PERSON("数据开放服务->获取抖音星图达人热榜", "/star/hot_list/"),
        DATA_OPEN_START_INDEX_PERSON("数据开放服务->获取抖音星图达人指数", "/star/author_score/"),
        DATA_OPEN_START_INDEX_PERSON_V2("数据开放服务->获取抖音星图达人指数V2", "/star/author_score_v2/"),
        ;
        private String message;
        private String url;

        Url(String message, String url) {
            this.message = message;
            this.url = url;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
